package cn.tannn.surenessdemo.jwt;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * jwt配置
 *
 * @author tnnn
 * @version V1.0
 * @date 2022-07-21 17:08
 */
@ConfigurationProperties(prefix = "tn.jwt")
@Component
@Getter
@Setter
@ToString
public class JwtConfig {

    /**
     * token私钥
     */
    private String tokenSecret = "?::4s9ssf2sf4sed45pf):" +
            "RnLN7XNn4wARoQXizIv6MHUsIV+EFfiMw/x7R0ntu4aWr/CWuApcFaj" +
            "CyaFv0bwq2Eik0jdrKUtsA6bx3sDJeFV643R+YYzGMRIqcBIp6AKA98" +
            "GM2RIqcBIp6-?::4390fsf4sdl6opf)4ZI:tdQMtcQQ14pkOAQdQ546";


    /**
     * 默认  过期时间为一天 (24*60*60) 单位 秒
     *
     */
    private long expireTime = 86400;
}
